package com.hfzy.ihk.facade.linkcall.entity;


import com.hfzy.ihk.common.facade.BaseEntity;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;
import java.util.Date;

@Document(indexName = "#{elasticSearchConfig.indexName()}_push_error_msg_log",shards = 24,replicas = 2, type = "data")
public class PushErrorMsgLog implements BaseEntity{
    @Id
    @Field(type = FieldType.Keyword)
    private String id;

    private long version;

    private String pushType;//推送类型

    private String pushMethod;//推送的方法

    private String pushParams;//推送的参数 -- 用json串存储 ，实际再按各自的方法进行处理

    private Date pushDate;//推送时间

    private String errorMsg;//异常的错误信息

    private long createUserId;//创建人

    @Override
    public Serializable getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public long getVersion() {
        return version;
    }

    public void setVersion(long version) {
        this.version = version;
    }

    public String getPushType() {
        return pushType;
    }

    public void setPushType(String pushType) {
        this.pushType = pushType;
    }

    public String getPushMethod() {
        return pushMethod;
    }

    public void setPushMethod(String pushMethod) {
        this.pushMethod = pushMethod;
    }

    public String getPushParams() {
        return pushParams;
    }

    public void setPushParams(String pushParams) {
        this.pushParams = pushParams;
    }

    public Date getPushDate() {
        return pushDate;
    }

    public void setPushDate(Date pushDate) {
        this.pushDate = pushDate;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public long getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(long createUserId) {
        this.createUserId = createUserId;
    }
}
